package com.chengzhi.structure;

/**
 * @description:
 * @author: ruanchengzhi
 * @create: 2020-08-20 11:11
 **/
public class LinkedListTest {
    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();
        list.add("1");
        list.add("2");
        list.add("3");
        list.add("4");
        list.add(3, "5");
        list.print();
        System.out.println(list.delete("2"));
        System.out.println(list.contains("4"));
        System.out.println(list);
    }
}
